package com.class04.service.impl;

import com.class04.dao.StudentDao;
import com.class04.domain.Student;
import com.class04.service.StudentService;

import java.util.List;

public class StudentServiceImpl implements StudentService {
    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    //    查询所有学生的业务数据
    @Override
    public List<Student> findAll() {
        List<Student> studentList = studentDao.queryAll();
        System.out.println("studentService业务层打印:" +
                studentList);
        return studentList;
    }
}
